using UnityEngine;
using UnityEngine.UI;
using QFramework;
using UnityEngine.SceneManagement;
using QFramework.FlyBird;

namespace QFramework.Example
{
	public class UIGameOverData : UIPanelData
	{
	}
	public partial class UIGameOver : UIPanel
	{
		protected override void OnInit(IUIData uiData = null)
		{
			mData = uiData as UIGameOverData ?? new UIGameOverData();
			// please add init code here

			ResStartBtn.onClick.AddListener(() =>
			{
				CloseSelf();
                FlappyBird.GameState.Value = GameStates.NotStart;
                SceneManager.LoadScene(SceneManager.GetActiveScene().name);
			});
		}
		
		protected override void OnOpen(IUIData uiData = null)
		{
		}
		
		protected override void OnShow()
		{
		}
		
		protected override void OnHide()
		{
		}
		
		protected override void OnClose()
		{
		}
	}
}
